﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleText
{
    [Serializable]
    public class KeyClass
    {
        [Serializable]
        public struct Replacement
        {
            public String cipher;
            public String plain;
        };

        List<Replacement> _data = new List<Replacement>();

        public void Clear()
        {
            _data.Clear();
        }

        public void Add(String plain, String cipher)
        {
            Replacement cp = new Replacement();
            cp.cipher = cipher;
            cp.plain = plain;
            _data.Add(cp);
        }

        public List<Replacement> Data
        {
            get { return _data; }
        }
    }
}
